/*
 * @Author: SongKaiWang
 * @Date: 2023-11-24 08:35:00
 * @LastEditTime: 2023-11-29 13:31:20
 */
import request from '@/utils/request'


/**修改卖家线下取货单 */
export function updateSkuSellerOffline(data) {
  return request({
    url: '/distribution/skuSellerOffline',
    method: 'put',
    data
  })
}

/**店铺列表 */
export function getDistributorShopList(params) {
  return request({
    url: '/distribution/distributorShop/list',
    params
  })
}
/**取货人下拉接口 */
export function getOrderClientList() {
  return request({
    url: '/distribution/orderClient/selectList?offline=1 ',
  })
}


/**查询卖家线下取货单列表 */
export function list(params) {
  return request({
    url: '/distribution/skuSellerOffline/list',
    params
  })
}



/**查询卖家线下取货单sku列表 */
export function skuSellerOfflineSkuList(params) {
  return request({
    url: '/distribution/skuSellerOfflineSku/list',
    params
  })
}



/**提交 */
export function submit(data) {
  return request({
    url: '/distribution/skuSellerOffline/submit',
    method: 'POST',
    data
  })
}


/**取消 */
export function cancel(data) {
  return request({
    url: '/distribution/skuSellerOffline/cancel',
    method: 'POST',
    data
  })
}



/**新增卖家线下取货单 */
export function skuSellerOfflineAdd(data) {
  return request({
    url: '/distribution/skuSellerOffline',
    method: 'POST',
    data
  })
}


/**新增卖家线下取货单sku */
export function skuSellerOfflineSkuAdd(data) {
  return request({
    url: '/distribution/skuSellerOfflineSku',
    method: 'POST',
    data
  })
}


/**修改卖家线下取货单sku */
export function editNum(data) {
  return request({
    url: '/distribution/skuSellerOfflineSku/editNum',
    method: 'POST',
    data
  })
}


/**删除卖家线下取货单sku */
export function skuSellerOfflineSkuDelete(ids) {
  return request({
    url: `/distribution/skuSellerOfflineSku/${ids}`,
    method: 'DELETE',
  })
}
